package com.ls.user.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ls.user.pojo.dto.LoginDTO;
import com.ls.user.pojo.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaotang
 * @since 2023-04-07
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from t_user where username = #{loginDTO.username} and password = #{loginDTO.password}")
    User login(@Param("loginDTO") LoginDTO loginDTO);
}
